<template>
    <div class="p-2">
        <transition>
            <el-tabs v-model="activeTab" @tab-click="handleClick">
                <el-tab-pane label="出库记录" name="outboundFlow">
                    <outboundFlow v-if="activeTab == 'outboundFlow'" />
                </el-tab-pane>
                <el-tab-pane label="出库详单" name="outboundDetailedList">
                    <outboundDetailedList v-if="activeTab == 'outboundDetailedList'" />
                </el-tab-pane>
            </el-tabs>
        </transition>
    </div>
</template>
<script setup lang="ts">
import type { TabsPaneContext } from 'element-plus'
import outboundFlow from './outboundFlow.vue'
import outboundDetailedList from './outboundDetailedList.vue'


const activeTab = ref('outboundFlow');

/**
 * tabs切换
 */
const handleClick = (tab: TabsPaneContext, event: Event) => {
    console.log(tab.props.name, event)
};

</script>
<style lang="scss" scoped>
.mb96 {
    margin-bottom: 96px;
}
</style>